feat: promote recommended PHP and database versions in init and docs#127
Merged
AaronFeledy merged 1 commit intomainfrom Feb 22, 2026
Merged
feat: promote recommended PHP and database versions in init and docs#127AaronFeledy merged 1 commit intomainfrom
AaronFeledy merged 1 commit intomainfrom
Conversation
✅ Deploy Preview for lando-wordpress ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Bugbot Autofix prepared fixes for 2 of the 2 bugs found in the latest run.
Or push these changes by commenting: Preview (f0052a0e35)diff --git a/.github/workflows/pr-wordpress-tests.yml b/.github/workflows/pr-wordpress-tests.yml
--- a/.github/workflows/pr-wordpress-tests.yml
+++ b/.github/workflows/pr-wordpress-tests.yml
@@ -23,6 +23,7 @@
- examples/wordpress-mariadb-mysql
- examples/wordpress-mysql8
- examples/wordpress-nginx
+ - examples/wordpress-recommended
lando-version:
- 3-edge
- 3-stable
diff --git a/examples/wordpress-init/README.md b/examples/wordpress-init/README.md
--- a/examples/wordpress-init/README.md
+++ b/examples/wordpress-init/README.md
@@ -32,18 +32,18 @@
cd wordpress
lando exec appserver -- curl -L localhost | grep "WordPress"
-# Should use 7.4 as the default php version
+# Should use 8.3 as the default php version
cd wordpress
-lando php -v | grep "PHP 7.4"
+lando php -v | grep "PHP 8.3"
# Should be running apache 2.4 by default
cd wordpress
lando exec appserver -- apachectl -V | grep 2.4
lando exec appserver -- curl -IL localhost | grep Server | grep 2.4
-# Should be running mysql 5.7 by default
+# Should be running mysql 8.0 by default
cd wordpress
-lando mysql -V | grep 5.7
+lando mysql -V | grep 8.0
# Should not enable xdebug by default
cd wordpress |
61d5bc3 to
de2ee27
Compare
- Updated lando init to set PHP 8.3 and MySQL 8.0 in generated Landofile - Added wordpress-recommended example with explicit version configuration - Updated docs to recommend always setting explicit php and database versions - Bumped @lando/php to ^1.11.1
de2ee27 to
11b1480
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
Updates the WordPress recipe plugin to actively encourage users to set explicit PHP and database versions rather than relying on defaults.
What changed
lando init: Now generates a Landofile withphp: '8.3'anddatabase: mysql:8.0(the WordPress.org recommended versions) instead of leaving them unsetwordpress-recommended— a test example with explicit recommended versionsphpanddatabasefields@lando/php: Bumped to^1.11.1Why
WordPress.org recommends PHP 8.3+ and MySQL 8.0+ / MariaDB 10.6+. The recipe defaults are still PHP 7.4 and MySQL 5.7 (intentionally unchanged to avoid breaking existing users), but new projects should start with current versions. This PR makes the happy path do the right thing.
Notes
lando initand documentationNote
Medium Risk
Changes the generated init defaults and test expectations to newer PHP/MySQL versions, which may surface compatibility issues in environments relying on prior implicit defaults. Core recipe runtime behavior is otherwise unchanged aside from the dependency bump.
Overview
Updates the WordPress
lando inittemplate to generate Landofiles with explicit recommended versions (php: 8.3,database: mysql:8.0).Adds a new
wordpress-recommendedexample and includes it in the CI matrix, and updates existing example verification steps to expect PHP 8.3/MySQL 8.0 defaults. Documentation is revised to prominently warn users to always set explicitphpanddatabaseversions, and@lando/phpis bumped to^1.11.1(lockfile updated).Written by Cursor Bugbot for commit 11b1480. This will update automatically on new commits. Configure here.